import { http } from '@/utils/request'
import type { SubmitPayParams } from '@/types/order'

// 获取支付订单
export const getPayOrder = (id: string) => {
    return http({
        method: 'GET',
        url: `/app-api/customer/orderAppPay/getOrderPayList?orderId=${id}`,
    })
}
// 提交支付订单
export const submitPayOrder = (data:SubmitPayParams) => {
    return http({
        method: 'POST',
        url: `/app-api/pay/order/submit`,
        data
    })
}
